<?php
/* 
 * $Id: php.php 11 2010-11-24 22:10:53Z LEON $
 * $Author: LEON $
 * $LastChangedDate: 2010-11-24 22:10:53 +0000 (Wed, 24 Nov 2010) $
 * $Revision: 11 $
 */
namespace cmFly\view\parsers;
use cmFly\view;
use cmFly\core;
class php extends view\iView {
    /**
     *
     * @var \cmFly\view\iView
     */
    protected $parent;
    /**
     *
     * @var \cmFly\core\base
     */
    protected $core;
    protected $dir;
    protected $mode;
    public function __construct(core\base $core,$dir,iView $parent=NULL,$mode='default') {
	$this->core=$core;
	$this->parent=$parent;
	$this->set_mode($mode);
    }
    public function set_mode($mode) {
	$this->mode=$mode;
    }
    public function set_dir($dir) {
	$this->dir=$dir;
    }
    public function get_parent() {
	return $this->parent;
    }
    protected function get_core() {
	return $this->core;
    }
    public function load_widget($cmd) {
	return $this->get_core()->load_widget($cmd);
    }
}